package com.myschool.controller;

import com.myschool.service.GradeService;
import com.myschool.util.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/grade")
public class GradeController {

    @Autowired
    GradeService gradeService;

    @RequestMapping("/all")
    public Object getAll(){
        ResponseEntity responseEntity = new ResponseEntity();
        responseEntity.setData(gradeService.getAll());
        return responseEntity;
    }
}
